package com.grape;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * 描述:测试生产者启动类
 * @author: myx
 * @date: 2019-05-24
 * Copyright © 2019-grape. All rights reserved.
 */
@SpringBootApplication
@EnableEurekaClient
@EnableFeignClients
//是否开启断路器(F版本默认开启  不加此项actuator监控无法获取actuator/hystrix.stream)
@EnableCircuitBreaker
@MapperScan("com.grape.testproducer.impl.mapper")
public class Application {

    public static void main(String[] args) {
        SpringApplication.run(Application.class,args);
    }
}
